<!--
<script src="./js/jquery.js" type="text/javascript"></script>
<script src="./js/jquery.maskedinput-1.2.2.min.js" type="text/javascript"></script>
-->

<%@include file="./js/jqueryValidate.jsp" %>
<%@include file="./js/jqueryMaskedInput.jsp" %>

<%@include file="header.jspf" %>
<script type="text/javascript">
	// extend the current rules with new groovy ones
	jQuery(function($){
		$("#date").mask("99/99/9999");
		$("#cpf").mask("999.999.999-99");
		$("#tin").mask("99-9999999");
		$("#ssn").mask("999-99-9999");
	});

	$(document).ready(function() {
		var validator = $("#formularioAluno").bind("invalid-form.validate", function() {
			$("#summary").html("Foram encontrados " + validator.numberOfInvalids() + " erros.");
		}).validate({
			//debug: true,
			errorElement: "em",
			errorContainer: $("#warning, #summary"),
			errorPlacement: function(error, element) {
				error.appendTo( element.parent("td").next("td") );
			},
			success: function(label) {
				label.text("ok!").addClass("success");
			}
		});

	});

</script>

<input id="cpf"/>
<%@include file="footer.jspf" %>